package com.cz.nongyetongv5.bean;

import java.io.Serializable;

public class ChanPinLeiBie implements Serializable {

	private Integer id;

	private String name;

	private Integer sortorder;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSortorder() {
		return sortorder;
	}

	public void setSortorder(Integer sortorder) {
		this.sortorder = sortorder;
	}

	public ChanPinLeiBie(Integer id, String name, Integer sortorder) {
		this.id = id;
		this.name = name;
		this.sortorder = sortorder;
	}

	public ChanPinLeiBie() {
	}

	@Override
	public boolean equals(Object o) {

		if (o == null) {

			return false;
		}

		if (!(o instanceof ChanPinLeiBie)) {

			return false;
		}

		ChanPinLeiBie data = (ChanPinLeiBie) o;

		if (data.getId() == this.getId()) {

			return true;
		} else {

			return false;
		}
	}
}
